<%-- 
    Document   : ajax
    Created on : 2019-9-30, 21:32:48
    Author     : 10592
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
    <script type="text/javascript" >
        function register(){
//            var mobile=document.getElementById("hhh").value;
//            var $mobile=$(".hhh").val();
            var $userName=$("input[name='userName']").val();
            var $pwd=$("input[name='passWord']").val();
            alert($userName+"\t"+$pwd);
        }
    </script>
    <body>
    <dt>账 户：</dt>
    <dd><input class="input-text" type="text" name="userName" /><span id="errorname" >当前用户不存在！</span></dd>
    <dt>密　码：</dt>
    <dd><input class="input-text" type="password" name="passWord" /><span id="errorpwd">密码过于简单！</span></dd>

        <input type="button" value="注册" onclick="register()"/>
    </body>
</html>
